package com.hksj.acm.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author fjt
 * @data 2024/7/16 15:29
 * @describe 空调机组故障报警
 */
@ColumnWidth(25)
@ContentRowHeight(20)
@HeadRowHeight(30)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FaultAlarmExcelVO implements Serializable {

    private static final long serialVersionUID = 7819706458541186121L;

    @ExcelProperty(value = "设备位置", index = 0)
    private String pathName;

    @ExcelProperty(value = "机组名称", index = 1)
    private String deviceName;

    @ExcelProperty(value = "故障描述", index = 2)
    private String remark;

    @ExcelProperty(value = "故障代码", index = 3)
    private String faultCode;

    @ExcelProperty(value = "故障时间", index = 4)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


}
